package com.wxtl.entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * LkAgentProduct entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "lk_agent_product", catalog = "upweb")
public class LkAgentProduct implements java.io.Serializable {

	// Fields

	private LkAgentProductId id;

	// Constructors

	/** default constructor */
	public LkAgentProduct() {
	}

	/** full constructor */
	public LkAgentProduct(LkAgentProductId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "agentId", column = @Column(name = "agentId", nullable = false)),
			@AttributeOverride(name = "productId", column = @Column(name = "productId", nullable = false)) })
	public LkAgentProductId getId() {
		return this.id;
	}

	public void setId(LkAgentProductId id) {
		this.id = id;
	}

}